package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * fec模块数据表 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineFecModule对象", description = "fec模块数据表")
public class DeviceMachineFecModule extends Model<DeviceMachineFecModule> {

  private static final long serialVersionUID = 1L;

  // "fec模块数据表id")
  @TableId(value = "fec_module_id", type = IdType.AUTO)
  private Integer fecModuleId;

  private Boolean intervalSave;

  // "fec数据表id")
  private Integer machineFecId;

  // "模块名称")
  private String moduleName;

  // "描述")
  private String description;

  // "认证状态")
  private String authState;

  // "认证模式")
  private String authMode;

  // "激光器模式")
  private String laserMode;

  /** 状态 */
  private String states;

  // "工作模式")
  private String workMode;

  // "温度")
  private String temper;

  // "偏置电流")
  private String biasCurrent;

  // "tx功率")
  private String txPower;

  // "rx功率")
  private String rxPower;

  // "波长")
  private String waveLength;

  // "温度下限")
  private String temperMin;

  // "温度上限")
  private String temperMax;

  // "偏置电流下限")
  private String biasCurrentMin;

  // "偏置电流上限")
  private String biasCurrentMax;

  // "发射功率上限")
  private String transmitPowerMin;

  // "发射功率下限")
  private String transmitPowerMax;

  // "接收功率上限")
  private String receivedPowerMin;

  // "接收功率下限")
  private String receivedPowerMax;

  // "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  // "DDM告警")
  private String ddm;

  @Override
  public Serializable pkVal() {
    return this.fecModuleId;
  }

}
